const config = require('./config');
const web3 = require("@solana/web3.js");

//console.log('devnet: ', config.devnet);
let url = config.localnet;
//url = config.devnet;
console.log('url: ', url);
let connection = new web3.Connection(url, "confirmed");

const run = async () => {
    let slot = await connection.getSlot();
    console.log(slot);
}

run();